package com.heima.wemedia.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.dto.WnMaterialDto;
import com.heima.model.common.wemedia.pojo.WmMaterial;
import com.jlefebure.spring.boot.minio.MinioException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 自媒体图文素材信息表 服务类
 * </p>
 *
 * @author author
 * @since 2023-06-03
 */
public interface WmMaterialService extends IService<WmMaterial> {

    ResponseResult pager(WnMaterialDto dto);

    ResponseResult collect(Integer id);

    ResponseResult uploadPicture(MultipartFile multipartFile) throws Exception;

    ResponseResult delete(Integer id) throws MinioException;
}
